package com.springboot.demo.oom;

import java.io.Serializable;

/**
 * 用户对象
 *
 * @author supu
 * @since 2020-06-17 14:39
 **/
public class User implements Serializable {

    private static final long serialVersionUID = 3303085699690135778L;

    private Integer id;

    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /*@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return id.equals(user.id) &&
                name.equals(user.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name);
    }*/
}
